<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>合同打印</title>
<t:base type="jquery,easyui,dataTables,lhgdialog"></t:base>
<%@ include file="/jsp/common/common_script.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
var contract_print = function(contractId,loanId,clientId,contractType){	
	$.dialog.confirm('确定打印吗？', function(){
		window.location.href = 'loan/ContractManage/printContract?id='+contractId+'&loanId='+loanId+'&clientId='+clientId+'&contractType='+contractType;
	});
}
</script>
<!-- extend -->
</head>
<body>
	<div id="tab5" class="tabson">
		<div class="formbody">
			<div class="formtitle"><span>打印选择</span></div>
			<div class="toolsli">
			    <ul class="forminfo">
			    	<li>
						<table class="newtablelist" id="" style="width:550px">
					        <tbody>
						        <tr>
							        <td class="newtd" colspan="2">借款合同</td>
							        <td ><a class="tablelink" href="javascript:void(0)" onclick="contract_print(${param.contractId},${param.loanId},${param.clientId},1)">打印</a></td>
							    </tr>
							    <tr>
							        <td class="newtd" colspan="2">借据-与借款合同配套</td>
							        <td ><a class="tablelink" href="javascript:void(0)" onclick="contract_print(${param.contractId},${param.loanId},${param.clientId},2)">打印</a></td>
							    </tr>
							    <tr>
							        <td class="newtd" colspan="2">保证合同</td>
							        <td ><a class="tablelink" href="javascript:void(0)" onclick="contract_print(${param.contractId},${param.loanId},${param.clientId},3)">打印</a></td>
							    </tr>
							    <tr>
							        <td class="newtd" colspan="2">关于同意执行共同财产的承诺函（配偶承诺）-与保证合同配套</td>
							        <td ><a class="tablelink" href="javascript:void(0)" onclick="contract_print(${param.contractId},${param.loanId},${param.clientId},4)">打印</a></td>
							    </tr>
							    <tr>
							        <td class="newtd" colspan="2">居间服务协议</td>
							        <td ><a class="tablelink" href="javascript:void(0)" onclick="contract_print(${param.contractId},${param.loanId},${param.clientId},5)">打印</a></td>
							    </tr>
							    <tr>
							        <td class="newtd" colspan="2">确认函-居间服务协议配套</td>
							        <td ><a class="tablelink" href="javascript:void(0)" onclick="contract_print(${param.contractId},${param.loanId},${param.clientId},6)">打印</a></td>
							    </tr>
							</tbody>
						</table>
    				</li>
			    </ul>
			</div>
	    </div>
	</div>	
</body>
</html>
